package com.dws.xchat.service;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.scheduling.annotation.Scheduled;
import org.springframework.stereotype.Service;

@Service
public class TestService {

	private static final Logger LOGGER = LoggerFactory.getLogger(TestService.class);
	
//	@Scheduled(fixedRate=5000) 指定执行频率
//	@Scheduled(cron="0 0/1 * * * ?")//定时执行
	public void test(){
		LOGGER.info("计划任务!");
//		System.out.println("计划任务!");
	}
	
}
